package cs271.examples.hashing;

import java.util.HashSet;

/**
 * An example that shows how to use the Hashset class found in the java
 * collections framework.  Remember that a set is a special data structure
 * that contains no duplicates.
 *
 */
public class HashSetExample {
	public static void main(String[] args) {
		HashSet<Integer> set = new HashSet<Integer>();
		
		set.add(3);
		set.add(3);
		set.add(5);
		set.add(4);
		
		System.out.println(set);
	}
}
